﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 仓位锁定明细
    /// </summary>
    public partial class TShippingLockCell
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 出库单Id
        /// </summary>
        public int? OrderId { get; set; }

        /// <summary>
        /// 出库单明细Id
        /// </summary>
        public int? OrderDetailId { get; set; }

        /// <summary>
        /// 库存Id
        /// </summary>
        public int? InventoryId { get; set; }

        /// <summary>
        /// 仓位Id
        /// </summary>
        public int? CellId { get; set; }

        /// <summary>
        /// 仓位编码
        /// </summary>
        public string CellCode { get; set; }

        /// <summary>
        /// 入库库位
        /// </summary>
        public string CellName { get; set; }

        /// <summary>
        /// 仓位深度
        /// </summary>
        public int? CellDepthIndex { get; set; }

        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; }

        /// <summary>
        /// 库Id
        /// </summary>
        public int? WhId { get; set; }

        #region 徐州新增字段
        /// <summary>
        /// 装备Id
        /// </summary>
        public int? MaterialCategoryId { get; set; }

        public string MaterialCategoryCode { get; set; }

        /// <summary>
        /// 装备名称
        /// </summary>
        public string MaterialCategoryName { get; set; }

        /// <summary>
        /// 器材分类
        /// </summary>
        public string MaterialGroupCode { get; set; }

        /// <summary>
        /// 型号规格
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 质量状态：0-待检；1-合格；2-不合格；
        /// </summary>
        public int QualityState { get; set; }

        /// <summary>
        /// 质量状态名称
        /// </summary>
        public string QualityStateName { get; set; }

        /// <summary>
        /// 器材基本单位Id
        /// </summary>
        public int? UnitId { get; set; }
        /// <summary>
        /// 器材基本单位
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 总计
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? TotalPrice { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? Price { get; set; }
        #endregion

        /// <summary>
        /// 组垛Id
        /// </summary>
        public int? StackingStorageId { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? OutQty { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? InventoryQty { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int? LockIndex { get; set; }

        /// <summary>
        /// 器材Id
        /// </summary>
        public int? MaterialId { get; set; }

        /// <summary>
        /// 器材编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 器材名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 是否拣选  现在用来表示这个物料是否出库完成
        /// </summary>
        public bool? IsPicking { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        public DateTime DateTime { get; set; }

        public string ParentPalletBarcode { get; set; }
    }
}